#include<stdio.h>

int hash[300];
int a[300];

int main()
{
    int n;
    scanf("%d", &n);
    int max = 0;
    int index = 0;
    for (int i = 0; i < n; i++)
    {
        scanf("%d", &a[i]);
        hash[a[i] + 100]++;
    }
    for (int i = 0; i < n; i++)
    {
        if (hash[a[i] + 100] > max)
        {
            index = a[i];
            max = hash[a[i] + 100];
        }
    }
    printf("Integer:%d\nTimes:%d\n", index, max);
    return 0;
}